package edu.zut2.poly_demo;

/**
 * 鸟
 * 鸵鸟   鸽子
 */
public class Bird extends Object{

    String name;
    String color;  //颜色
    String habit;  //爱好

    public Bird() {
    }

    public Bird(String name, String color, String habit) {
        this.name = name;
        this.color = color;
        this.habit = habit;
    }

    public void fly(){
        System.out.println(name + "可以在天空飞翔,喜欢" + habit);
    }

}

